Ext.define("MyApp.model.Appointments", {

	extend: "Ext.data.Model",
	
	config: {
		storeId: 'Appointments',
		idProperty: "id",
		
		fields: [
			{ name: "id", type: "auto" },
			{ name: "appointmentid", type: "integer" },
			{ name: "firstname", type: "string" },
			{ name: "lastname", type: "string" },
			{ name: "date", type: "date" },
			{ name: "starttime", type: "date"},
			{ name: "endtime", type: "date"},
			{ name: "mobile", type: "string"},
			{ name: "email", type: "string"},
			{ name: "notes", type: "string"},
			{ name: "mapaddress", type: "string"},
			{ name: "maplink", type: "string"},
			{ name: "calendar", type: "string"},
			{ name: "reminder", type: "string"},
			{ name: "remindertime", type: "string"},
			{ name: "sentby", type: "string"}
			],

			proxy: {
            type: 'localstorage',
            id  : 'appointmentslocal'
        }

	
	
	}
});
	